package org.origin.ferret.system.model.dto.dict;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 更新系统字典数据-实体类
 *
 * @author ferret
 * @version 2024-05-08
 */
@Data
@Schema(description = "更新系统字典数据-实体类")
public class SysDictChildrenUpdateDto {

    @NotNull(message = "主键ID不能为空")
    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

    @NotBlank(message = "名称不能为空")
    @Schema(description = "名称")
    private String name;

    @NotBlank(message = "类型不能为空")
    @Schema(description = "类型")
    private String type;

    @Schema(description = "顺序")
    private Integer sort;

}
